home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Include / FWIntere.h next >
Encoding:
Text File  |  1996-08-16  |  2.0 KB  |  74 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWIntere.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWINTERE_H
  11. #define FWINTERE_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifndef FWNOTDEF_H
  18. #include "FWNotDef.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. // Forward declarations
  23. //========================================================================================
  24.  
  25. class FW_MNotifier;
  26.  
  27. //========================================================================================
  28. // CLASS FW_CInterest
  29. //========================================================================================
  30.  
  31. class FW_CInterest
  32. {
  33. public:
  34.     FW_CInterest();
  35.     FW_CInterest(FW_MNotifier* notifier, FW_Message msg);
  36.     FW_CInterest(const FW_CInterest& other);
  37.     
  38.     ~FW_CInterest();
  39.     
  40.     FW_CInterest&        operator=(const FW_CInterest& other);
  41.     FW_Boolean            operator==(const FW_CInterest& other) const;
  42.     
  43.     FW_Message            GetMessage() const;
  44.     FW_MNotifier*        GetNotifier() const;
  45.     
  46. private:
  47.     FW_Message            fMessage;
  48.     FW_MNotifier*        fNotifier;
  49. };
  50.  
  51. //========================================================================================
  52. // Inlines
  53. //========================================================================================
  54.  
  55. //----------------------------------------------------------------------------------------
  56. // FW_CInterest::GetName
  57. //----------------------------------------------------------------------------------------
  58.  
  59. inline FW_Message FW_CInterest::GetMessage() const
  60. {
  61.     return fMessage;
  62. }
  63.  
  64. //----------------------------------------------------------------------------------------
  65. // FW_CInterest::GetNotifier
  66. //----------------------------------------------------------------------------------------
  67.  
  68. inline FW_MNotifier* FW_CInterest::GetNotifier() const
  69. {
  70.     return fNotifier;
  71. }
  72.  
  73. #endif
  74.